package com.zoe.onelink.auth.autoconfigure;

import com.zoe.onelink.auth.component.OneLinkRedisTokenStore;
import com.zoe.onelink.upms.common.service.OneLinkTokenStore;
import org.springframework.context.annotation.Bean;
import org.springframework.data.redis.core.RedisTemplate;

/**
 * <p>标题: </p>
 * <p>描述: </p>
 * <p>版权: Copyright (c) 2018</p>
 * <p>公司: 智业软件</p>
 *
 * @author LinHongKai
 * @date 2022-02-26 8:19
 */
public class TokenStoreAutoConfiguration {

    @Bean
    public OneLinkTokenStore oneLinkTokenStore(RedisTemplate<String, Object> redisTemplate) {
        OneLinkRedisTokenStore tokenStore = new OneLinkRedisTokenStore(redisTemplate);
        return tokenStore;
    }
}
